<?php 
	require ("../header.php");
	include ("../engine/sql.inc.php");
	if($ad_check<1){
	header ("Location:../login.php?action=0");
	}
	
?>
<?php 

	if (isset($_GET['sub'])) {
		$q_subject=$_GET['sub'];
		$q_subject=clean($q_subject);
	}
	if (isset($_GET['dep'])) {
		$q_department=$_GET['dep'];
		$q_department=clean($q_department);
	}
	if (isset($_GET['sem'])) {
		$q_sem=$_GET['sem'];
		$q_sem=clean($q_sem);
	}
	if (isset($_GET['topic'])) {
		$q_topic=$_GET['topic'];
		$q_topic=clean($q_topic);
	}
?>
<style type="text/css">
<!--
body,td,th {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
}
.style1 {color: #000000}
-->
</style></head>

<body>
<div align="center">
  <p><strong>REGISTER ANOTHER QUESTION </strong></p>
  <table width="395" border="0">
    <tr>
      <td width="82"><span class="style1">Subject</span></td>
      <td width="10"><span class="style1">:</span></td>
      <td width="289"><span class="style1"><?php echo $q_subject; ?></span></td>
    </tr>
    <tr>
      <td><span class="style1">Department</span></td>
      <td><span class="style1">:</span></td>
      <td><span class="style1"><?php echo $q_department; ?></span></td>
    </tr>
    <tr>
      <td><span class="style1">Semester</span></td>
      <td><span class="style1">:</span></td>
      <td><span class="style1"><?php echo $q_sem; ?></span></td>
    </tr>
    <tr>
      <td><span class="style1">Topic</span></td>
      <td><span class="style1">:</span></td>
      <td><span class="style1"><?php echo $q_topic; ?></span></td>
    </tr>
    <tr>
      <td><span class="style1"></span></td>
      <td><span class="style1"></span></td>
      <td><span class="style1"></span></td>
    </tr>
    <tr>
      <td colspan="3"><hr /></td>
    </tr>
    <tr>
      <td><span class="style1"></span></td>
      <td><span class="style1"></span></td>
      <td><span class="style1"></span></td>
    </tr>
  </table>
  <form name="reg_next_question" method="POST" 
  action="engine/quest_reg_engine.php?sub=<?php echo $q_subject. "&&topic=".$q_topic."&&sem=".$q_sem."&&dep=".$q_department."&&sem=".$q_sem; ?>">
  <table width="395" border="0" align="center">
    <tr>
      <td width="82" valign="top"><div align="left" class="style5 style1">Question</div></td>
      <td width="10" valign="top"><div align="left" class="style5 style1">:</div></td>
      <td width="289" valign="top"><div align="left" class="style5 style1">
          <textarea name="q_question" cols="38" rows="5" id="q_question"></textarea>
      </div></td>
    </tr>
    <tr valign="middle">
      <td colspan="3"><div align="left" class="style5 style1">
          <hr />
        </div>
          <div align="left" class="style5 style1"></div>
        <div align="left" class="style5 style1"></div></td>
    </tr>
    <tr valign="top">
      <td valign="top"><div align="left" class="style5 style1">
          <p>Answer</p>
      </div></td>
      <td valign="top"><p class="style5 style1">:</p></td>
      <td valign="top"><p align="left" class="style5 style1">
          <input name="answer1" type="text" id="answer1" size="20" />
        This should be the answer.</p>
          <p align="left" class="style5 style1">
            <input name="answer2" type="text" id="answer2" size="20" />
            This is the wrong answer.</p>
        <p align="left" class="style5 style1">
            <input name="answer3" type="text" id="answer3" size="20" />
          This is the wrong answer.</p>
        <p align="left" class="style5 style1">
            <input name="answer4" type="text" id="answer4" size="20" />
          This is the wrong answer.</p></td>
    </tr>
  </table>
  
  <p>
    <input type="submit" name="Submit" value="REGISTER QUESTION" />
  </p></form>
</div>

<?php require ("footer.php"); ?>
